package com.example.dapengdata.FieldMessage;

import android.app.Fragment;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.annotation.RequiresApi;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.dapengdata.MyActivity;
import com.example.dapengdata.R;

import java.util.ArrayList;
import java.util.List;

import lecho.lib.hellocharts.view.LineChartView;

public class MessageActivity extends AppCompatActivity implements View.OnClickListener {
    private LineChartView[] lineChartViews;
    private MyLineChartData[] myLineChartDatas;
    private MyViewPager viewPager;
    private List<View> views;
    //    private TextView textView;
//    private TextView textView1;
//    private TextView textView2;
//    private TextView textView3;
    private ImageView[] chooses;
    private ViewPagerAdapter adapter;
    private LinearLayout linearLayout;
    private int cuurentPage;
    private AnalogData analogData = new AnalogData();
    private LineChartViewAdapter[] lineChartViewAdapters;
    private TextView mTextMessage;

    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fieldmessage);
        Window window = this.getWindow();
        //取消设置透明状态栏,使 ContentView 内容不再覆盖状态栏
        window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
        //需要设置这个 flag 才能调用 setStatusBarColor 来设置状态栏颜色
        window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
        //设置状态栏颜色
        window.setStatusBarColor(getResources().getColor(R.color.color_green700));
        mTextMessage = (TextView) findViewById(R.id.message);
    }

    @Override
    public void onClick(View view) {

    }
}




